package me.zhengjie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.dao.MergeTaskDao;
import me.zhengjie.dao.dto.MergeTaskQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MergeTaskMapper extends BaseMapper<MergeTaskDao> {

    IPage<MergeTaskDao> findAll(@Param("criteria") MergeTaskQueryCriteria criteria, Page<Object> page);

    List<MergeTaskDao> findAll(@Param("criteria") MergeTaskQueryCriteria criteria);

    Page<MergeTaskDao> findMergeStoreTask(@Param("criteria") MergeTaskQueryCriteria criteria, @Param("page") Page<MergeTaskDao> page);
}
